﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using PMQLNhaHang.Utils;


namespace PMQLNhaHang
{
    public partial class FMain : Form
    {
        public static int state = 0;

        public FMain()
        {            
            InitializeComponent();
        }
        #region Event
        //Load Form phục vụ
        private void ucPhucVu_Click(object sender, EventArgs e)
        {

            fmPhucVu frmPV = new fmPhucVu();
           
            this.Hide();
            frmPV.ShowDialog();
            this.Show();

        }
        //Load form quản lý thực đơn
        private void ucQuanLyThucDon_Click(object sender, EventArgs e)
        {
            fmQLThucDon fmQLTDon = new fmQLThucDon();
            fmQLTDon.ShowDialog();
        }
        private void ucQuanLyKho_Click(object sender, EventArgs e)
        {
            fmQLKho fmQLK = new fmQLKho();
            fmQLK.ShowDialog();
        }

        private void ucKhuVucBanAn_Click(object sender, EventArgs e)
        {
            fmQLKVBAn fmqlkvba = new fmQLKVBAn();
            fmqlkvba.ShowDialog();
        }

        private void ucQuanLyHoaDon_Click(object sender, EventArgs e)
        {
            fmQLHoaDonVaBaoCao fmHDBC = new fmQLHoaDonVaBaoCao();
            fmHDBC.ShowDialog();
        }

        private void ucQuanLyNguoiDung_Click(object sender, EventArgs e)
        {
            fmQLNguoiDung fmnd = new fmQLNguoiDung();
            fmnd.ShowDialog();
        }

        private void ucQLCauHinh_Click(object sender, EventArgs e)
        {
            fmQLCauHinh fmcauHinh = new fmQLCauHinh();
            fmcauHinh.ShowDialog();
        }

        private void ucHuongDanSuDung_Click(object sender, EventArgs e)
        {
            fmHuongDanSuDung fmHDSD = new fmHuongDanSuDung();
            fmHDSD.ShowDialog();
        }
        #endregion

        //public void NhanNhanVien(NhanVien nvv)
        //{
        //    nv = nvv;
        //    lbNguoiDung.Text = nv.HoTen;
        //}

        private void FMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

    }
}
